#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:homework1_4.py
# author:wmf
# datetime:2021/3/7 20:38
# software: PyCharm
'''
this is function description
'''
# import module your need

#4  判断用户输入的年份是否为闰年

year = input("请输入年份:")
judge = False

if(eval(year)%100 == 0):
    if(eval(year)%400 == 0):
        print(year,end='')
        print("年是闰年")
    else:
        print(year, end='')
        print("年是平年")
else:
    if(eval(year)%4 == 0):
        print(year, end='')
        print("年是闰年")
    else:
        print(year, end='')
        print("年是平年")